//封装与教练有关的请求

import {request} from "@/utils/request";

export function getCoachAppliAPI(userId){
    return request({
        url:`/admin/course/application/${userId}`,
        method:'GET'
    })
}

//模拟考试评分
export function mockExamEvaluateAPI(data){
    return request({
        url:'/coach/mockExamEvaluate',
        method:'POST',
        data:data
    })
}
//获取学员留言
export function getStudentCourseMessageAPI(coachName){
    return request({
        url:`/coach/getStudentCourseMessage/${coachName}`,
        method:'GET'
    })
}

//回复学生留言
export function sentStudentCourseMessageAPI(data){
    return request({
        url:'/coach/sentStudentCourseMessage',
        method:'PUT',
        data:data
    })
}